<%--
    Created by IntelliJ IDEA.
    User: Re
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>订单</title>
    <style>
        #PageBody {
            width: 37%;
            text-align: center;
        }
        .left {
            float: left;
            width: 17%;
        }
        .right {
            float: left;
            width: 30%;
        }
    </style>
</head>
<body>
<div id="PageBody">
    <form action="deleteOrder" method="post">
        <div class="right">
            <table style="border: 2px">
                <tr>
                    <th>商品名</th>
                    <th>价格</th>
                </tr>
                <c:forEach items="${commodityListMsg}" var="commodityList" begin="">
                <tr>
                    <td>${commodityList.commodityName}</td>
                    <td>${commodityList.commodityPrice}</td>

                <tr>
                    </c:forEach>
            </table>
        </div>
        <div class="left">
            <table>
                <tr>
                    <th>取消订单</th>
                </tr>
                <c:forEach items="${orderListMsg}" var="orderList">
                    <tr>
                    <td><button type="submit" name="cancel" value="${orderList.orderId}">取消订单</button> </td>
                    </tr>
                </c:forEach>
            </table>
        </div>
    </form>
</div>
</body>
</html>
